package com.tbit.uqbike.client.dao.log;

import com.tbit.uqbike.client.pojo.newEntity.UserFaceLog;
import org.apache.ibatis.annotations.Param;


import java.util.List;

/**
 * @Description:人脸识别成功或者失败后的处理
 * @author: zhoujj
 * @date: 2023/11/7 17:05
 * @Version: 3.8.2
 */
public interface UserFaceLogDao {
    /**
     * 新增
     *
     * @param userFaceLog
     */
    void insertUserFaceLog(@Param("userFaceLog") UserFaceLog userFaceLog);


    /**
     * 查询用户的成功或者失败的图片
     */
    List<UserFaceLog> queryUserFaceLogsByUserId(@Param("userId") Integer userId, @Param("success") Integer success, @Param("limit") Integer limit);

    /**
     * 删除本地数据
     */
    void deleteUserFaceLogsByFaceId(Integer faceId);

}
